package com.xmg.p2p.base.service;

import com.xmg.p2p.base.domain.Logininfo;

/**
 * 登录相关服务
 * @author jining
 *
 */
public interface ILogininfoService {
	/**
	 * 用户注册
	 * @param username
	 * @param password
	 */
	void register(String username,String password,int userType);

	Logininfo get(Long id);

    boolean checkUsername(String username,int userType);

	Logininfo login(String username, String password,String ip,int userType);

	void initAdmin();
}
